package wh.jf.factory;

public class FactoryProducer {
    public static AbstractFactory getAbstractFactory(AbstractFactoryType type){
        AbstractFactory abstractFactory = null;
        switch (type) {
            case COLOR: abstractFactory = new ColorFactory(); break;
            default: abstractFactory = new ShapeFactory();
        }
        return abstractFactory;
    }
}
